﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RenAi.Medical.BLL;
using RenAi.Medical.Model;
using System.Web.Script.Serialization;
namespace RenAi.Medical.Admin.Handler
{
    /// <summary>
    /// HandlerAllUsers 的摘要说明
    /// </summary>
    public class HandlerAllUsers : IHttpHandler
    {
        UsersBLL bll = new UsersBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            List<Users> list = bll.Users();
            context.Response.Write(new System.Web.Script.Serialization.JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(list)); //转化为Json
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}